import Layout from '@/pages/public/layout' // 公共部分

const classes = [{
  path: '/course/classes',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/course/classes/list.vue'),
    meta: {
      title: '班级课-列表',
      permission: 'course.classes.default'
    }
  }, {
    path: 'recommend',
    component: () => import('@/pages/course/classes/recommend.vue'),
    meta: {
      title: '推荐班级课-列表',
      permission: 'course.classes.recommend'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/course/classes/create.vue'),
    meta: {
      title: '班级课-新建',
      permission: 'course.classes.default.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/course/classes/edit.vue'),
    meta: {
      title: '班级课-编辑',
      permission: 'course.classes.default.edit'
    }
  }, {
    path: ':id/link/list',
    component: () => import('@/pages/course/classes/link/index.vue'),
    meta: {
      title: '关联列表',
      permission: 'course.classes.default.link'
    }
  }, {
    path: ':id/student',
    component: () => import('@/pages/course/classes/student/index.vue'),
    meta: {
      title: '学员管理',
      permission: 'course.classes.default.student'
    }
  }, {
    path: ':id/student/:user_id(\\d+)/info',
    component: () => import('@/pages/course/classes/student/learn_info.vue'),
    meta: {
      title: '学员管理- 学习详情',
      permission: 'course.classes.default.student'
    }
  }]
}]

export default classes
